const TENANT_KEY = 'tenant';

const getTenantCode = () => {
  return localStorage.getItem(TENANT_KEY);
};

const setTenantCode = (token: string) => {
  localStorage.setItem(TENANT_KEY, token);
};

const clearTenantCode = () => {
  localStorage.removeItem(TENANT_KEY);
};

export { clearTenantCode, getTenantCode, setTenantCode };
